pack.py: use the same TAR format as cargo
authorLuca Bruno <lucab@debian.org>
Sun, 14 Feb 2016 14:58:37 +0000 (15:58 +0100)
committerLuca Bruno <lucab@debian.org>
Sun, 14 Feb 2016 14:58:37 +0000 (15:58 +0100)
debian/cargo-vendor-pack.py

index 7ae9ef1e848ccf4df1db65f23bb38858d3fe5ef4..e29c571bd5327e617738130d7a0c74920808a5e2 100755 (executable)
@@ -84,7 +84,7 @@ def main():
       destdir=(os.path.join(cachedir, name, ver))
       os.makedirs(destdir)
       tarcrate = os.path.join(destdir, "download")
-      tar = tarfile.open(tarcrate, "w:gz")
+      tar = tarfile.open(tarcrate, "w:gz", format=tarfile.USTAR_FORMAT)
       tar.add(os.path.join(depsdir, crate), arcname=crate)
       tar.close()